class Eric_math:
    @staticmethod
    def ten_convert_two(num):
        """
        十进制到二进制的转换
        :param num = int()
        :return str
        """
        b = str()
        while True:
            a = num % 2
            z = num // 2
            result = str(a)
            b = b + result
            if z == 0:
                break
            else:
                num = z
        return b[::-1]


e = Eric_math.ten_convert_two(8)
print(e)
